<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>登录个人音乐收藏</title>
    <link rel="stylesheet" href="css/font-awesome-4.7.0/css/font-awesome.min.css">
    <link rel="stylesheet" href="css/style.css">

</head>
<body>
    <div class="materialContainer">
        <form action="LoginServlet" method="post">
            <div class="box">
                <div class="title">登录</div>
                <div class="input">
                    <label for="name">用户名</label>
                    <input type="text" name="name" id="name" value="${sessionScope.name}">
                    <span class="spin"></span>
                </div>
                <div class="input">
                    <label for="pass">密码</label>
                    <input type="password" name="pass" id="pass" value="${sessionScope.pass}">
                    <span class="spin"></span>
                </div>
                <div class="button login">
                    <button type="submit">
                        <span>登录</span>
                        <i class="fa fa-check"></i>
                    </button>
                </div>
                <%
                    if (session.getAttribute("checkbox")==null||session.getAttribute("checkbox").equals("1")){
                %>
                    <a class="pass-forgot">
                        <input type="checkbox" name="checkbox" value="1" checked>记住我
                            <br>
                            ${login}
                    </a>
                <%
                }else{%>
                    <a class="pass-forgot">
                        <input type="checkbox" name="checkbox" value="1">记住我
                            <br>
                            ${login}
                    </a>
                   <% }%>
            </div>
        </form>
        <form method="post" action="ZCServlet">
        <div class="overbox">
            <div class="material-button alt-2">
                <span class="shape"></span>
            </div>
            <div class="title">注册</div>
            <div class="input">
                <label for="regname">用户名</label>
                <input type="text" name="name" id="regname">
                <span class="spin"></span>
            </div>
            <div class="input">
                <label for="regpass">密码</label>
                <input type="password" name="pass" id="regpass">
                <span class="spin"></span>
            </div>
            <div class="input">
                <label for="reregpass">确认密码</label>
                <input type="password" name="repass" id="reregpass">
                <span class="spin"></span>
            </div>
            <div class="button" style="display: none;">
                <button>
                    <span>注册</span>
                </button>
            </div>
        </div>
        </form>
    </div>
<script src="js/jquery.min.js"></script>
<script src="js/index.js"></script>
<%
    request.removeAttribute("login");
%>
</body>
</html>
